package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.UserProfile;
import com.ruoyi.system.mapper.UserProfileMapper;
import com.ruoyi.system.service.UserProfileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: azh
 * Created on 2025-3-10 22:10
 */
@Service
public class UserProfileServiceImpl implements UserProfileService {

    @Autowired
    private UserProfileMapper userProfileMapper;


    @Override
    public void insertUserProfile(UserProfile userProfile) {
        userProfileMapper.insertUserProfile(userProfile);
    }

    @Override
    public UserProfile selectUserProfileByUserId(long userId) {
        return userProfileMapper.selectUserProfileById(userId);
    }

    @Override
    public void updateUserProfile(UserProfile profile) {
        userProfileMapper.updateUserProfile(profile);
    }

    @Override
    public void deleteUserProfileByUserId(long userId) {
        userProfileMapper.deleteUserProfileById(userId);
    }

}
